package cn.keniykey.mc.landterritory.vault;

import org.bukkit.OfflinePlayer;
import org.bukkit.World;
import org.bukkit.entity.Player;

public final class PermNull extends Perm {
	PermNull() {}

	@Override
	public boolean isEnable() {
		return false;
	}

	@Override
	public boolean hasPermission(World world, OfflinePlayer p, String per) {
		return hasPermission("", p, per);
	}

	@Override
	public boolean hasPermission(String world, OfflinePlayer p, String per) {
		final Player pl = p.getPlayer();
		if (pl != null) return pl.hasPermission(per);
		return false;
	}

	@Override
	public boolean addPlayerPermission(String world, OfflinePlayer p, String per) {
		return false;
	}

	@Override
	public boolean removePlayerPermission(String world, OfflinePlayer p, String per) {
		return false;
	}

	@Override
	public boolean addGroupPermission(String world, String group, String per) {
		return false;
	}

	@Override
	public boolean removeGroupPermission(String world, String group, String per) {
		return false;
	}
}